package vn.orderonline.core.dao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "RESIDE")
public class Reside implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer resideId;
	private String resideName;

	public Reside() {

	}

	public Reside(Integer resideId, String resideName) {
		this.resideId = resideId;
		this.resideName = resideName;
	}

	@Id
	@GeneratedValue
	@Column(name = "RESIDE_ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Integer getResideId() {
		return resideId;
	}

	public void setResideId(Integer resideId) {
		this.resideId = resideId;
	}

	@Column(name = "RESIDE_NAME", length = 255)
	public String getResideName() {
		return resideName;
	}

	public void setResideName(String resideName) {
		this.resideName = resideName;
	}

}
